package org.thanos.demo.mongo;

import java.io.Serializable;
import java.util.StringJoiner;

public class DemoEntity implements Serializable {

    public DemoEntity(){
        super();
    }

    private String name;
    private Long timestamp;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", DemoEntity.class.getSimpleName() + "[", "]")
                .add("name='" + name + "'")
                .add("timestamp=" + timestamp)
                .toString();
    }
}
